package com.stars.init;

import com.stars.config.DBConfig;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

@Component
@DependsOn({"springContextUtil"})
public class ApplicationContextListener implements ServletContextListener {

    public ApplicationContextListener(){

    }

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        /*
         * 初始化系统参数配置
         */
        DBConfig.initSystemConfig();
    }

}
